package cn.inyaa.admin.sys.bean;

import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Entity
@Table(name = "inyaa_sys_user")
@Accessors(chain = true)
public class InyaaSysUser implements Serializable {

    private static final long serialVersionUID = -4307367511896826563L;

    @Id
    @GeneratedValue
    private Integer id;
    private String username; // 用户名
    private String password; // 密码
    private String name;// 姓名
    private String email; // 邮箱
    private LocalDateTime loginDate;// 最后登录日期
    private String loginIp;// 最后登录IP
    private String avatar; //头像
    private Integer roleId; //角色Id
    private LocalDateTime createTime; //创建日期
    private Boolean enabled; // 账号是否可用
    private Boolean accountNonExpired; // 账号是否未过期
    private Boolean accountNonLocked; // 账号是否未锁定
    private Boolean credentialsNonExpired; // 账号凭证是否未过期
}
